package com.bawei.yangzongcai___day2.MaiDongFangQi.day15.MMVVPP.P;

import com.bawei.yangzongcai___day2.MaiDongFangQi.day15.MMVVPP.M.mmvvppModel;
import com.bawei.yangzongcai___day2.MaiDongFangQi.day15.MMVVPP.V.mmvvppView;

/**
 * create by ertu
 * create on 2021/8/2
 * description
 */
public class BasemmvvppPretenter<M extends mmvvppModel,V extends mmvvppView> implements mmvvppPretenter {
    protected  M conten;
    protected V vies;

    public BasemmvvppPretenter(M conten, V vies) {
        this.conten = conten;
        this.vies = vies;
    }

    @Override
    public void dismmvvppPretenter() {
        if (conten!=null)
        {
            conten=null;
            conten.dismmvvppModel();
        }
        if (vies!=null)
        {
            vies=null;
        }
    }
}
